using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Customers
{
    public interface ICustomerTypeAppService
    {
        Task<CustomerTypeDto> GetAsync(Guid id);
        Task<CustomerTypeDto> FindAsync(string filter);
        Task<CustomerTypeDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<CustomerTypeDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<CustomerTypeDto>> QueryAsync(FilterGroupRequestDto input);
        Task<ListResultDto<CustomerTypeDto>> GetChildrenAsync(Guid? parentId, bool recursive = false);
        Task<CustomerTypeDto> CreateAsync(CustomerTypeCreateDto input);
        Task<CustomerTypeDto> UpdateAsync(Guid id, CustomerTypeUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}